home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8228 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: news.aracnet.com!news
  2. From: acs@aracnet.com (ACS)
  3. Newsgroups: comp.lang.c++
  4. Subject: [HELP] TOOL FOR REMOVING TOO MANY #ifdef's
  5. Date: 15 Feb 1996 21:53:09 GMT
  6. Organization: aracnet.com -- Portland's loudest electrons
  7. Message-ID: <4g0a05$llr@cobweb.aracnet.com>
  8. NNTP-Posting-Host: ppp-m16.aracnet.com
  9. Mime-Version: 1.0
  10. X-Newsreader: WinVN 0.99.3
  11.  
  12. Hi,
  13.  
  14. I was given a huge "PORTABLE" C/C++ source code that's supposed to com
  15. pile 
  16. under DOS, Unix, Windows, etc.  I am currently adding some features
  17. while porting the source set to Windows95.  Of course I am having 
  18. quite a bit of problems.
  19.  
  20. The task of adding new features and building a new Win95 port is 
  21. IMMENSELY exacerbated because the source set has a huge number 
  22. of #ifdef's for various OS/Version/features builds.
  23. And frankly, I have no idea at all what some of these #ifdef's mean 
  24. (Ex. #ifdef _PRACTICAL).
  25.  
  26. What I would like to do is "SELECTIVELY PREPROCESS THE SOURCE 
  27. WITHOUT SUBSTITUTING MACROS". This way I figure I could reduce 
  28. the size of the source set by 50%, and make it more intellible. 
  29. I tried GNU CPP, but I could not find a way "NOT TO SUBSTITUTE MACROS".
  30.  
  31. Could anyone point me to a tool that does
  32.    "SELECTIVELY PREPROCESS THE SOURCE WITHOUT SUBSTITUTING MACROS"
  33.  
  34. Thanks, Adrian
  35.  
  36.